<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Document</title>
</head>
<body>
	<script>
	   function A(name,age,eat) {
		   this.name=name
		   this.age=age
		   this.eat=eat
	   }

      function Person(name,age,eat,skin,think) {
            //  this.name=name
			//  this.age=age
			//  this.eat=eat
			  A.call(this,name,age,eat)
			 this.skin=skin
			 this.think=think
			 
	  }

	 
 var p1=new Person('老王',50,function(){},'white',function(){console.log('中国为什么这么多房子')})
 var p2=new Person('老王222',50,function(){},'white',function(){console.log('中国为什么这么多房子')})
	console.log(p1)
	console.log(p2)
	</script>
</body>
</html>